<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
    <div region="center" style="padding:1px;">
        <t:datagrid name="cbsInvoiceInfoList" checkbox="true" fitColumns="false" title="开票信息" pagination="false"
                    actionUrl="cbsInvoiceInfoController.do?datagridSelect&invoiceGenre=all&belongId=${belongId}&clientType=${clientType}"
                    idField="id" fit="true" queryMode="group">
            <t:dgCol title="ID" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
            <t:dgCol title="客户税号 " field="clientTaxnum"  queryMode="single" width="120"></t:dgCol>
            <t:dgCol title="客户地址 " field="clientAddress" queryMode="group" width="120"></t:dgCol>
            <t:dgCol title="客户电话 " field="clientPhone"  queryMode="single" width="120"></t:dgCol>
            <t:dgCol title="客户银行名称 " field="clientBankname" queryMode="group" width="120"></t:dgCol>
            <t:dgCol title="客户银行账号 " field="clientBankaccount" queryMode="group" width="120"></t:dgCol>
            <t:dgCol title="发票抬头" field="invoiceTitle" queryMode="group" width="120"></t:dgCol>
        </t:datagrid>
    </div>
</div>
<script src="webpage/com/buss/invoice_info/cbsInvoiceInfoList.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        //给时间控件加上样式
        $("#cbsInvoiceInfoListtb").find("input[name='createDate_begin']").attr("class", "Wdate").attr("style", "height:20px;width:90px;").click(function () {
            WdatePicker({dateFmt: 'yyyy-MM-dd'});
        });
        $("#cbsInvoiceInfoListtb").find("input[name='createDate_end']").attr("class", "Wdate").attr("style", "height:20px;width:90px;").click(function () {
            WdatePicker({dateFmt: 'yyyy-MM-dd'});
        });
        $("#cbsInvoiceInfoListtb").find("input[name='updateDate_begin']").attr("class", "Wdate").attr("style", "height:20px;width:90px;").click(function () {
            WdatePicker({dateFmt: 'yyyy-MM-dd'});
        });
        $("#cbsInvoiceInfoListtb").find("input[name='updateDate_end']").attr("class", "Wdate").attr("style", "height:20px;width:90px;").click(function () {
            WdatePicker({dateFmt: 'yyyy-MM-dd'});
        });
    });
    function goUpload(title, addurl, gname, width, height) {
        openuploadwin("导入开票信息", addurl, gname, 500, 500);
    }
</script>